<?php
$this->pageTitle = Yii::app()->name . ' - Settings';
?>

<div id="content" class="span12">
    <h1>Settings</h1>

    <div class="row">
        <div class="span12">
            <?php if (Yii::app()->user->hasFlash('success')): ?>
                <div class="alert alert-success">
                    <?php echo Yii::app()->user->getFlash('success'); ?>
                </div>
            <?php endif; ?>
            
            <?php
            $form = $this->beginWidget('CActiveForm', array(
                'id' => 'smsconfig-form',
                    ));
            ?>

            <?php echo $form->errorSummary($model, null, null, array('class' => 'alert alert-error')); ?>

            <fieldset>
                <div class="control-group">
                    <?php echo $form->labelEx($model, 'domain', array('class' => 'control-label')); ?>
                    <div class="controls">
                        <?php echo $form->textField($model, 'domain'); ?>
                    </div>
                </div>
                <div class="control-group">
                    <?php echo $form->labelEx($model, 'portNumber', array('class' => 'control-label')); ?>
                    <div class="controls">
                        <?php echo $form->textField($model, 'portNumber'); ?>
                    </div>
                </div>
                <div class="control-group">
                    <?php echo $form->labelEx($model, 'destinationPhoneNumber', array('class' => 'control-label')); ?>
                    <div class="controls">
                        <?php echo $form->textField($model, 'destinationPhoneNumber'); ?>
                    </div>
                </div>
                <div class="control-group">
                    <?php echo $form->labelEx($model, 'timeInterval', array('class' => 'control-label')); ?>
                    <div class="controls">
                        <?php echo $form->textField($model, 'timeInterval'); ?>
                    </div>
                </div>
            </fieldset>

            <div class="form-actions">
                <?php echo CHtml::htmlButton('Save', array('class' => 'btn btn-primary', 'type' => 'submit')); ?>
            </div>
            <?php $this->endWidget(); ?>
        </div>    
    </div>
</div>
